<%--
  Created by IntelliJ IDEA.
  User: stiofan
  Date: 2017/2/2
  Time: 21:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/jsp/common/tags.jsp" %>

<aos:html title="房产信息查询分析" base="http" lib="ext">
    <aos:body>
    </aos:body>
</aos:html>
<script type="text/javascript" src="/static/js/gridToExcel.js"></script>
<aos:onready>
    <aos:viewport layout="fit">
        <aos:formpanel layout="column" columnWidth="1" border="false" autoScroll="true">
            <aos:docked dock="top" columnWidth="1" layout="column" border="true" height="120">
                <aos:dockeditem text="执行查询" margin="0 5" columnWidth="0.1" icon="icon71.png"
                                onclick="queryFcxxcxfxByParams"/>
                <aos:dockeditem text="重置条件" margin="0 5" columnWidth="0.1" icon="icon72.png" onclick="resetCxtjForm"/>
<%--                 <aos:dockeditem text="结果导出" margin="0 5" columnWidth="0.1" icon="icon70.png" --%>
<%--                                 onclick="grid2Excel(fcxxcxfxGrid,'查询结果')"/> --%>
                <aos:dockeditem text="结果导出" margin="0 5" columnWidth="0.1" icon="icon70.png"
                                onclick="grid2Excel(fcxxcxfxGrid,'查询结果')" />
                <aos:panel columnWidth="1" layout="column">
                    <aos:formpanel id="fcxxcxfxForm" layout="column" columnWidth="1">
                        <aos:textfield id="nsrsbh" name="nsrsbh" fieldLabel="纳税人识别号" columnWidth="0.25"/>
                        <aos:datefield id="cxqsrq" name="cxqsrq" fieldLabel="查询起始日期" columnWidth="0.25"/>
                        <aos:datefield id="cxzzrq" name="cxzzrq" fieldLabel="查询终止日期" columnWidth="0.25"/>
                        <aos:textfield id="fczyz" name="fczyz" fieldLabel="房产总原值" columnWidth="0.25"/>
                        <aos:textfield id="ysmj" name="ysmj" fieldLabel="应税面积" columnWidth="0.25"/>
                        <aos:textfield id="msmj" name="msmj" fieldLabel="免税面积" columnWidth="0.25"/>
                        <aos:combobox id="sfxszfxx" name="sfxszfxx" fieldLabel="显示作废信息" columnWidth="0.25"
                                      dicField="sfxszfxxDm"
                                      value="Y"/>
                        <aos:combobox id="zgswjgDm" name="zgswjgDm" fieldLabel="主管税务机关" columnWidth="0.25"
                                      url="fgcjxxbdfxService.queryZgswjgDmByHttpModel"
                                      onselect="queryZgswskfjDmByZgswjgDm"/>
                        <aos:combobox id="zgswskfjDm" name="zgswskfjDm" fieldLabel="主管税务科所" columnWidth="0.25"
                                      url="fgcjxxbdfxService.queryZgswskfjDmByZgswjgDm"
                                      onselect="querySsglyDmByZgswskfjDm"/>
                        <aos:combobox id="ssglyDm" name="ssglyDm" fieldLabel="税收管理员" columnWidth="0.25"
                                      url="fgcjxxbdfxService.querySsglyDmByZgswskfjDm"/>
                    </aos:formpanel>
                </aos:panel>
            </aos:docked>
            <aos:gridpanel id="fcxxcxfxGrid" layout="fit" forceFit="true" columnWidth="3" autoScroll="true"
                           hidePagebar="true" url="fcxxcxfxService.queryFcxxcxfxByParams">
                <aos:column dataIndex="nsrsbh" header="纳税人识别号" width="0.1" align="center"/>
                <aos:column dataIndex="nsrmc" header="纳税人名称" width="0.1" align="center"/>
                <aos:column dataIndex="lxrxm" header="联系人姓名" width="0.1" align="center"/>
                <aos:column dataIndex="lxrsfzjlxDm" header="证件类型" width="0.1" align="center"
                            rendererField="sfzjlxDm"/>
                <aos:column dataIndex="lxrsfzjhm" header="证件号码" width="0.1" align="center"/>
                <aos:column dataIndex="lxryddh" header="联系电话" width="0.1" align="center"/>
                <aos:column dataIndex="lxrdz" header="联系地址" width="0.3" align="center"/>
                <aos:column dataIndex="fcbh" header="房产编号" width="0.1" align="center"/>
                <aos:column dataIndex="fczh" header="房产证号" width="0.1" align="center"/>
                <aos:column dataIndex="jzmj" header="建筑面积" width="0.1" align="rigth" type="number" format="0.00"/>
                <aos:column dataIndex="fczyz" header="房产总原值" width="0.1" align="rigth" type="number" format="0.00"/>
                <aos:column dataIndex="zldz" header="坐落地址" width="0.3" align="center"/>
                <aos:column dataIndex="fcytDm" header="房产用途" rendererField="fcytDm" width="0.1" align="center"/>
                <aos:column dataIndex="fcjgDm" header="房产结构" rendererField="fcjgDm" width="0.1" align="center"/>
                <aos:column dataIndex="fcqdrq" header="取得日期" width="0.1" align="center" type="date" format="Y-m-d"/>
                <aos:column dataIndex="fcyxqq" header="有效期起" width="0.1" align="center" type="date" format="Y-m-d"/>
                <aos:column dataIndex="fcyxqz" header="有效期止" width="0.1" align="center" type="date" format="Y-m-d"/>
                <aos:column dataIndex="fcsyrlxDm" header="使用人类型" rendererField="fcsyrlxDm" width="0.1"/>
                <aos:column dataIndex="fcsyqlxDm" header="使用权类型" rendererField="fcsyqlxDm" width="0.1"/>
                <aos:column dataIndex="fcsyqZsbh" header="权证书编号" width="0.1" align="center"/>
                <aos:column dataIndex="fcsyqYsmj" header="应税面积" width="0.1" align="right" type="number"
                            format="0.00"/>
                <aos:column dataIndex="fcsyqMsmj" header="免税面积" width="0.1" align="right" type="number"
                            format="0.00"/>
                <aos:column dataIndex="fcsyqQdrq" header="取得日期" width="0.1" type="date" format="Y-m-d"
                            align="center"/>
                <aos:column dataIndex="fcsyqQsrq" header="起始日期" width="0.1" type="date" format="Y-m-d"
                            align="center"/>
                <aos:column dataIndex="fcsyqZzrq" header="终止日期" width="0.1" type="date" format="Y-m-d"
                            align="center"/>
                <aos:column dataIndex="zfyy" header="作废原因" width="0.3" align="center"/>
                <aos:column dataIndex="zfrq" header="作废日期" width="0.1" align="center" type="date" format="Y-m-d"/>
            </aos:gridpanel>
        </aos:formpanel>
    </aos:viewport>
    <script type="text/javascript">
        function queryZgswskfjDmByZgswjgDm() {
            var params = {
                zgswjgDm: Ext.getCmp("zgswjgDm").getValue()
            };
            zgswskfjDm_store.getProxy().extraParams = params;
            zgswskfjDm_store.reload();
        }
        function querySsglyDmByZgswskfjDm() {
            var params = {
                zgswskfjDm: Ext.getCmp("zgswskfjDm").getValue()
            };
            ssglyDm_store.getProxy().extraParams = params;
            ssglyDm_store.reload();
        }
        function queryFcxxcxfxByParams() {
            var params = {
                nsrsbh: Ext.getCmp("nsrsbh").getValue(),
                cxqsrq: Ext.getCmp("cxqsrq").getValue(),
                cxzzrq: Ext.getCmp("cxzzrq").getValue(),
                sfxszfxx: Ext.getCmp("sfxszfxx").getValue(),
                zgswjgDm:Ext.getCmp("zgswjgDm").getValue(),
                zgswskfjDm:Ext.getCmp("zgswskfjDm").getValue(),
                ssglyDm:Ext.getCmp("ssglyDm").getValue(),
                fczyz:Ext.getCmp("fczyz").getValue(),
                ysmj:Ext.getCmp("ysmj").getValue(),
                msmj:Ext.getCmp("msmj").getValue()
            };
            fcxxcxfxGrid_store.getProxy().extraParams = params;
            fcxxcxfxGrid_store.reload();
        }
        function resetCxtjForm() {
            AOS.reset(fcxxcxfxForm);
        }
     
    </script>
</aos:onready>